package cn.wolfcode.luowowo.util;

import lombok.Getter;

import java.util.HashMap;
import java.util.Map;

@Getter
public class TravelConditon {
    //映射数据输出化
    public static final Map<Integer, TravelConditon> MAP_PERWXTEND = new HashMap<>();
    public static final Map<Integer, TravelConditon> MAP_DAY = new HashMap<>();

    private int min;
    private int max;

    public TravelConditon(int min, int max) {
        this.max = max;
        this.min = min;
    }

    static {
        MAP_PERWXTEND.put(1, new TravelConditon(1, 999));
        MAP_PERWXTEND.put(2, new TravelConditon(1000, 6000));
        MAP_PERWXTEND.put(3, new TravelConditon(6001, 20000));
        MAP_PERWXTEND.put(4, new TravelConditon(20001, Integer.MAX_VALUE));
        MAP_DAY.put(1, new TravelConditon(0, 3));
        MAP_DAY.put(2, new TravelConditon(4, 7));
        MAP_DAY.put(3, new TravelConditon(8, 14));
        MAP_DAY.put(4, new TravelConditon(15, Integer.MAX_VALUE));
    }
}
